package org.jaaksi.kottlindemo.cls

import org.jaaksi.kottlindemo.model.Person
import org.jaaksi.kottlindemo.model.Person2

class TestClas {
  fun copy() { // data class的copy
    val person = Person2("张三", 11, "1001")
    person.copy(id = "1102")

    // val (name, age, id) fixme 解构声明
    val (name, age, id) = person
    println("$name")

    var (name2, age2, id2) = Person()

    // public inline operator fun <K, V> Map.Entry<K, V>.component1(): K = key
    var data: Map<String, String> = emptyMap()
    for ((key, value) in data) {

    }
    User("11",11)
  }
}

